package com.mt.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mt.pojo.Film;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mt.pojo.FilmTag;

import java.util.List;

/**
 * @author Wang
 * @since 2020-11-12
 */
public interface FilmService extends IService<Film> {
    List<Film> listFilms(int currentPage, int pageSize);
    IPage<Film> pageFilms(int currentPage, int pageSize, String filmName);

    List<Film> getAllFilms();
    List<Film> listRecentlyReleaseFilms();

    Film getFilmDetail(Integer filmId,String userId);
    List<Film> getFilmsById(List<Integer> ids);

    List<FilmTag> getTags();

    boolean addFilm(Film film);

    boolean modifyFilm(Film film);

    List<Film> getTopFilm();

    List<Film> searchFilm(String filmName);
    List<Film> searchFilm(int currentPage,int pageSize, List<Integer> tagIds, String releaseYear);
}
